package com.androidbook;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Weapon implements MechanicGame
{

	private boolean hiden;
	private boolean show;
	public Weapon()
	{
		setHiden(false);	
		setShow(false);
	}
	
	public void draw(Canvas canvas,Bitmap[] bmptab,int NrBmp,float left, float top)
	{
		if(!isHiden())
		{
			show=true;
			canvas.drawBitmap(bmptab[NrBmp], left,top,null);
		}
	}

	public boolean isHiden() {
		return hiden;
	}

	public void setHiden(boolean hiden) {
		this.hiden = hiden;
	}

	public boolean isShow() {
		return show;
	}

	public void setShow(boolean show) {
		this.show = show;
	}
	
}
